package swa2.icecream.command;

import swa2.icecream.factory.AbstractIceCreamFactory;

public class CherryOnCommand implements Command
{
	private AbstractIceCreamFactory factory;
	
	public CherryOnCommand(AbstractIceCreamFactory factory) {
		super();
		this.factory = factory;
	}

	@Override
	public void execute() {
		factory.addCherry(1);
	}

	@Override
	public void undo() {
		factory.addCherry(-1);
	}

}
